package com.doupi.partner.dal.model;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * com.xletou.generator.codegen.mybatis3.IntrospectedTableMyBatisImpl@990b86b 
 */
public class OperationLog implements Serializable {
    private static final long serialVersionUID = -1698264157179282176L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 表名
     */
    private String tableName;

    /**
     * 执行sql
     */
    private String sql;

    /**
     * 执行sql参数
     */
    private String sqlParameter;

    /**
     * 执行sqlmapid
     */
    private String sqlMapId;

    /**
     * 操作类型 1 增加 2 删除 3修改
     */
    private Byte type;

    /**
     * 备注
     */
    private String memo;

    /**
     * 管理员id
     */
    private Long createAdministratorId;

    /**
     * 创建时间
     */
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getSqlParameter() {
        return sqlParameter;
    }

    public void setSqlParameter(String sqlParameter) {
        this.sqlParameter = sqlParameter;
    }

    public String getSqlMapId() {
        return sqlMapId;
    }

    public void setSqlMapId(String sqlMapId) {
        this.sqlMapId = sqlMapId;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getCreateAdministratorId() {
        return createAdministratorId;
    }

    public void setCreateAdministratorId(Long createAdministratorId) {
        this.createAdministratorId = createAdministratorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        return EqualsBuilder.reflectionEquals(this, that);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}